import Home from './components/Home.vue'
// 用户管理
// import UserManage from './views/UserManage.vue'; 
// 问题管理
import IssueManage from './views/IssueManage.vue';
// 招标管理
import BiddingManage from './views/BiddingManage.vue';
// 案件管理
import CaseManage from './views/case/CaseManage.vue';
// 案例管理
import ExampleManage from './views/example/ExampleManage';
import AddExample from './views/example/AddExample';

// 法律短剧
import PlayletManage from './views/law/PlayletManage.vue';
import AddPlaylet from './views/law/AddPlaylet';

// 法律知识
import KnowledgeManage from './views/law/KnowledgeManage';
import AddKnowledge from './views/law/AddKnowledge';
import KnowledgeClassify from './views/law/KnowledgeClassify';
// 律师审核
import LawyerAuditManage from './views/lawyer/LawyerAuditManage'
// 律师管理
import LawyerManage from './views/lawyer/LawyerManage'
import LawyerDetail from './views/lawyer/LawyerDetail';
// 公益项目
// import PublicWelfareManage from './views/publicWelfare/PublicWelfareManage';
// import PublicProjectDetail from './views/publicWelfare/PublicProjectDetail';
import AddProject from './views/publicWelfare/AddProject';

// 公告管理
import NoticeManage from './views/notice/NoticeManage';
import AddNotice from './views/notice/AddNotice';

// banner管理
import BannerManage from './views/ad/BannerManage';
import AddAd from './views/ad/AddAd';

// 咨询管理
import ConsultManage from './views/consult/ConsultManage';
// import AddConsultRecord from './views/consult/AddConsultRecord';

// 分类管理
import ClassifyManage from './views/classify/ClassifyManage';
import AddClassify from './views/classify/AddClassify';

// 专家团队
import TeamManage from './views/team/TeamManage';
import AddExpert from './views/team/AddExpert';
// 交易管理
import TradeRecordManage from './views/TradeRecordManage';
// 提现管理
// import WithdrawCashManage from './views/withdrawCash/WithdrawCashManage';
import WithdrawCashSetting from './views/withdrawCash/WithdrawCashSetting';
// 组织架构
// import OrganizationalStructureManage from './views/organizationalStructure/OrganizationalStructureManage';
import AddStaff from './views/organizationalStructure/AddStaff';

// 权限管理
import PermissionManage from './views/permission/PermissionManage';
import PermissionSettings from './views/permission/PermissionSettings';
// 404
import NotFound from './components/NotFound';
export const DynamicRoutes = {
    path: '/home',
    name: 'Home',
    component: Home,
    children: [],
}

export const configRouter = {
    user: [
        {  
            path: 'user',
            // component: UserManage,
            component: (resolve) => require(['./views/UserManage.vue'], resolve),
            meta: {
                name: '用户管理'
            }
        }
    ],
    employee: [
        {  
            path: 'organizationalStructure',
            // component: OrganizationalStructureManage,
            component: (resolve) => require(['./views/organizationalStructure/OrganizationalStructureManage.vue'], resolve),
            meta: {
                name: '组织架构'
            }
        },
        {
            path: 'addStaff',
            component: AddStaff
        },
        {
            path: 'editStaff/:id',
            component: AddStaff
        }
    ],
    userCapital: [
        {  
            path: 'withdrawCash',
            // component: WithdrawCashManage,
            component: (resolve) => require(['./views/withdrawCash/WithdrawCashManage'], resolve),
            meta: {
                name: '提现管理'
            }
        },
        {
            path: 'withdrawCashSetting',
            component: WithdrawCashSetting
        }
    ],
    logMoney: [
        {  
            path: 'tradeRecord',
            component: TradeRecordManage,
            meta: {
                name: '交易记录'
            }
        }
    ],
    expert: [
        {  
            path: 'team',
            component: TeamManage,
            meta: {
                name: '专家团队'
            }
        },
        {
            path: 'addExpert',
            component: AddExpert
        },
        {
            path: 'editExpert/:id',
            component: AddExpert
        }
    ],
    caseType: [
        {  
            path: 'classify',
            component: ClassifyManage,
            meta: {
                name: '分类管理'
            }
        },
        {
            path: 'addClassify',
            component: AddClassify
        },
        {
            path: 'editClassify/:id',
            component: AddClassify
        }
    ],
    consultation: [
        {  
            path: 'consult',
            component: ConsultManage,
            meta: {
                name: '咨询管理'
            }
        },
        {
            path: 'addConsultRecord',
            // component: AddConsultRecord
            component: (resolve) => require(['./views/consult/AddConsultRecord'], resolve)
        },
        {
            path: 'editConsultRecord/:id',
            // component: AddConsultRecord
            component: (resolve) => require(['./views/consult/AddConsultRecord'], resolve)
        }
    ],
    banner: [
        {  
            path: 'banner',
            component: BannerManage,
            meta: {
                name: 'Banner管理'
            }
        },
        {
            path: 'addAd',
            component: AddAd
        },
        {
            path: 'editAd/:id',
            component: AddAd
        }
    ],
    notice: [
        {  
            path: 'notice',
            component: NoticeManage,
            meta: {
                name: '公告管理'
            }
        },
        {
            path: 'addNotice',
            component: AddNotice
        },
        {
            path: 'editNotice/:id',
            component: AddNotice
        }
    ],
    project: [
        {  
            path: 'publicWelfare',
            // component: PublicWelfareManage,
            component: (resolve) => require(['./views/publicWelfare/PublicWelfareManage'], resolve),
            meta: {
                name: '公益项目'
            }
        },
        {
            path: 'publicWelfare/detail/:id',
            // component: PublicProjectDetail
            component: (resolve) => require(['./views/publicWelfare/PublicProjectDetail'], resolve)
        },
        {
            path: 'publicWelfare/addProject',
            component: AddProject
        },
        {
            path: 'publicWelfare/editProject/:id',
            component: AddProject
        }
    ],
    lawyer: [
        {  
            path: 'lawyer',
            component: LawyerManage,
            meta: {
                name: '律师管理'
            }
        },
        {
            path: 'lawyer/detail/:id',
            component: LawyerDetail
        },
        {
            path: 'lawyer/edit/:editId',
            component: LawyerDetail
        }
    ],
    lawyerAudit: [
        {  
            path: 'lawyerAudit',
            component: LawyerAuditManage,
            meta: {
                name: '律师审核'
            }
        }
    ],
    caseKnowledge: [
        {  
            path: 'legalKnowledge',
            component: KnowledgeManage,
            meta: {
                name: '法律知识'
            }
        },
        {
            path: 'addKnowledge',
            component: AddKnowledge
        },
        {
            path: 'editKnowledge/:id',
            component: AddKnowledge
        },
        {
            path: 'knowledgeClassify',
            component: KnowledgeClassify
        }
    ],
    caseVideo: [
        {  
            path: 'playlet',
            component: PlayletManage,
            meta: {
                name: '法律短剧'
            }
        },
        {
            path: 'addPlaylet',
            component: AddPlaylet
        },
        {
            path: 'editPlaylet/:id',
            component: AddPlaylet
        }
    ],
    caseExample: [
        {  
            path: 'example',
            component: ExampleManage,
            meta: {
                name: '案例管理'
            }
        },
        {
            path: 'addExample',
            component: AddExample
        },
        {
            path: 'editExample/:id',
            component: AddExample
        }
    ],
    case: [
        {  
            path: 'case',
            component: CaseManage,
            meta: {
                name: '案件管理'
            }
        },
        {
            path: 'case/progressList/:id',
            component: (resolve) => require(['./views/case/ProgressList.vue'], resolve),
        }
    ],
    bidding: [
        {  
            path: 'bidding',
            component: BiddingManage,
            meta: {
                name: '招标管理'
            }
        }
    ],
    permission: [
        {  
            path: 'permission',
            component: PermissionManage,
            meta: {
                name: '权限管理'
            }
        },
        {
            path: 'permissionSettings/:id',
            component: PermissionSettings
        }
    ],
    question: [
        {  
            path: 'issue',
            component: IssueManage,
            meta: {
                name: '问题管理'
            }
        }
    ],
    notFound: {
        path: '*',
        component: NotFound
    }
}

